{% extends "admin/common_base.html" %}

{% block main %}


<div class="main">
    <div class="body container">
        <div class="typecho-page-title">
            <h2>更换主题</h2>
        </div>
        <div class="row typecho-page-main" role="main">
            <div class="col-mb-12">
                <div class="typecho-table-wrap">
                    <table class="typecho-list-table typecho-theme-list">
                        <colgroup>
                            <col width="35%">
                            <col>
                        </colgroup>

                        <thead>
                        <tr><th>截图</th>
                            <th>详情</th>
                        </tr></thead>

                        <tbody>
                        <tr id="theme-default" class="current">
                            <td valign="top"><img src="http://www.typecho.cn/usr/themes/default/screenshot.png" alt="default"></td>
                            <td valign="top">
                                <h3>Typecho Replica Theme</h3>
                                <cite>
                                    作者: <a href="http://typecho.org" target="_blank">Typecho Team</a> &nbsp;&nbsp;                                        版本: 1.2                                    </cite>
                                <p>这是 Typecho 0.9 系统的一套默认皮肤</p>
                            </td>
                        </tr>
                        <tr id="theme-type2" class="">
                            <td valign="top"><img src="http://www.typecho.cn/usr/themes/type2/screenshot.png" alt="type2"></td>
                            <td valign="top">
                                <h3>Typecho Replica Theme</h3>
                                <cite>
                                    作者: <a href="http://typecho.org" target="_blank">Typecho Team</a> &nbsp;&nbsp;                                        版本: 1.2                                    </cite>
                                <p>这是 Typecho 0.9 系统的一套默认皮肤</p>
                                <p>
                                    <a class="activate" href="http://www.typecho.cn/index.php/action/themes-edit?change=type2">启用</a>
                                </p>
                            </td>
                        </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>

{% endblock %}
{% block footer %}
<script>
        (function () {
            $(document).ready(function () {
                var error = $('.typecho-option .error:first');
        
                if (error.length > 0) {
                    $('html,body').scrollTop(error.parents('.typecho-option').offset().top);
                }
        
                $('form').submit(function () {
                    if (this.submitted) {
                        return false;
                    } else {
                        this.submitted = true;
                    }
                });
        
                $('label input[type=text]').click(function (e) {
                    var check = $('#' + $(this).parents('label').attr('for'));
                    check.prop('checked', true);
                    return false;
                });
            });
        })();
        </script>
        <script>
                $('#frontPage-recent,#frontPage-page,#frontPage-file').change(function () {
                    var t = $(this);
                    if (t.prop('checked')) {
                        if ('frontPage-recent' == t.attr('id')) {
                            $('.front-archive').addClass('hidden');
                        } else {
                            $('.front-archive').insertAfter(t.parent()).removeClass('hidden');
                        }
                    }
                });
                </script>
{% endblock %}